// 订单类型
export interface cartType {
  id: number;
  num: number;
  name: string;
  url: string;
  unitPrice: string;
  price: string;
  selectedAmount: string;
}

export interface CartResultType {
  cartList: cartType[];
  totalNum: string;
  totalPrice: string;
}

export interface OrderType {
  id?: string;
  wxId?: number;
  cartResultVO?: CartResultType;
  createTime: Date;
}

export interface OrderPageRequest {
  id?: string;
  wxId?: number;
  currentPage: number;
  pageSize: number;
}

export interface OrderPageResponse extends ResponseData {
  data: OrderPageType;
}

export interface OrderPageType {
  total: number;
  records: OrderType[];
}

export interface OrderListType {
  cartList: CartListType[];
  totalNum: string;
  totalPrice: string;
}

export interface CartListType {
  id: number;
  name: string;
  url: string;
  unitPrice: string;
  price: string;
  selectedAmount: string;
}

// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
  code: number;
  message: string;
}
